package com.huawei.crm.job;

import lombok.Data;

@Data
public abstract class AbstractIndexTask implements IndexTask {
	private boolean finished;
	private String cronExpress;
	private int interval;
	private TaskType type;

	@Override
	public void run() {
		if (isFinished()) {
			return;
		}
		run0();
	}

	abstract void run0();
}
